﻿@model MVC_DaLatServices.Models.Article

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Article</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Alias)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Alias)
            @Html.ValidationMessageFor(model => model.Alias)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IntroText)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IntroText)
            @Html.ValidationMessageFor(model => model.IntroText)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FullText)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FullText)
            @Html.ValidationMessageFor(model => model.FullText)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreatedDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreatedDate)
            @Html.ValidationMessageFor(model => model.CreatedDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreatedBy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreatedBy)
            @Html.ValidationMessageFor(model => model.CreatedBy)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreatedByAlias)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreatedByAlias)
            @Html.ValidationMessageFor(model => model.CreatedByAlias)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ModifiedBy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ModifiedBy)
            @Html.ValidationMessageFor(model => model.ModifiedBy)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ModifiedDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ModifiedDate)
            @Html.ValidationMessageFor(model => model.ModifiedDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Image)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Image)
            @Html.ValidationMessageFor(model => model.Image)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Hits)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Hits)
            @Html.ValidationMessageFor(model => model.Hits)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MetaKey)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MetaKey)
            @Html.ValidationMessageFor(model => model.MetaKey)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MetaDesc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MetaDesc)
            @Html.ValidationMessageFor(model => model.MetaDesc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Published)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Published)
            @Html.ValidationMessageFor(model => model.Published)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.State)
            @Html.ValidationMessageFor(model => model.State)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CheckoutBy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CheckoutBy)
            @Html.ValidationMessageFor(model => model.CheckoutBy)
        </div>                                                                                         

        <div class="editor-label">
            @Html.LabelFor(model => model.CheckoutDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CheckoutDate)
            @Html.ValidationMessageFor(model => model.CheckoutDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CategoryID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CategoryID)
            @Html.ValidationMessageFor(model => model.CategoryID)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
